package com.ohuang.util_a;

import android.util.Log;

/**
 *
 */
public class LogUtil {
    public static final String TAG = "LogUtil";

    public static final int Level_debug=3;
    public static final int Level_info=2;
    public static final int Level_warn=1;
    public static final int Level_error=0;
    public static final int Level_noLog=-1;



    public static int  level = Level_debug;



    public static void d(String tag, String msg) {
        if (level>=Level_debug) {
            Log.d(tag, msg);
        }
    }

    public static void e(String tag, String msg) {
        if (level>=Level_error) {
            Log.e(tag, msg);
        }
    }

    public static void i(String tag, String msg) {
        if (level>=Level_info) {
            Log.i(tag, msg);
        }
    }

    public static void w(String tag, String msg) {
        if (level>=Level_warn) {
            Log.w(tag, msg);
        }
    }

}
